.net 6 foreach only if not null

78

.net 6 foreach only if not null -

List<string> items = null;
items?.ForEach(item =>
{
    // ...
});

Comments

Submit
0 Comments